/*
 * Created on Dec 22, 2004
 */
package org.vectrics.batch;

import java.util.Date;

import org.vectrics.common.util.DateSync;

/**
 * @author MMoore
 */
public class BatchLog {
	private Long id = null;
	private Date dateRecorded = DateSync.getCurrentTime();
	private String message = null;
	private BatchInfo batchInfo = null;
	private boolean error = false;
	
	
	/**
	 * @return Returns the batchInfo.
	 */
	public BatchInfo getBatchInfo() {
		return batchInfo;
	}
	/**
	 * @param batchInfo The batchInfo to set.
	 */
	public void setBatchInfo(BatchInfo batchInfo) {
		this.batchInfo = batchInfo;
	}
	/**
	 * @return Returns the dateRecorded.
	 */
	public Date getDateRecorded() {
		return dateRecorded;
	}
	/**
	 * @param dateRecorded The dateRecorded to set.
	 */
	public void setDateRecorded(Date dateRecorded) {
		this.dateRecorded = dateRecorded;
	}
	/**
	 * @return Returns the id.
	 */
	public Long getId() {
		return id;
	}
	
	/**
	 * @param id The id to set.
	 */
	public void setId(Long id) {
		this.id = id;
	}
	
	/**
	 * @return Returns the error.
	 */
	public boolean getError() {
		return error;
	}
	/**
	 * @param error The error to set.
	 */
	public void setError(boolean error) {
		this.error = error;
	}
	/**
	 * @return Returns the message.
	 */
	public String getMessage() {
		return message;
	}
	/**
	 * @param message The message to set.
	 */
	public void setMessage(String message) {
		this.message = message;
	}
}
